package com.newer.service;

import com.newer.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookService {

    //增加一本书
    int addBook(Books books);

    //删除一本书
    int deleteBook(int id);

    //更新一本书
    int updateBook(Books books);

    //查询一本书
    Books queryById(int id);

    //查询所有书
    List<Books> queryAllBook();

    Books queryBookByName(@Param("bookName") String bookName);
}
